﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GOCS_TEST
{
    class Program
    {
        static void Main(string[] args)
        {

            GOCS.GObjectManager ObjManager = new GOCS.GObjectManager();



            GOCS.GObject obj = new GOCS.GObject();
            obj.SetComponent(new CompHealth());
            obj.SetComponent(new CompVisualSphere());

            ObjManager._List.Add(obj);


            obj = new GOCS.GObject();
            obj.SetComponent(new CompHealth());
            obj.SetComponent(new CompVisual());

            ObjManager._List.Add(obj);


            foreach (GOCS.GObject o in ObjManager._List)
            {
                CompVisual cv = o.getComponent<CompVisual>();
                if (cv != null)
                    cv.Draw();
            }



        }
    }
}
